﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using RPGMapa.Data;

namespace RPGMapa.Forms
{
    public partial class NewMap : Form
    {
        private Map result;

        public Map Result
        {
            get { return result; }
            set { result = value; }
        }
        public NewMap()
        {
            InitializeComponent();
            result = null;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            result = new Map(
                textBox1.Text,
                new Vector2((int)numericUpDown1.Value, (int)numericUpDown2.Value),
                new Vector2((int)numericUpDown3.Value, (int)numericUpDown4.Value));
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            result = null;
            this.Close();
        }
    }
}
